package org.eclipse.football;

public class Kicker {
	// Define private member variables
	String name;
	int pat;
	int fg0;
	int fg1;
	int fg2;
	int misses;
	
	// Define constructor
	public Kicker(String name_in){
		// Set name based off given input name
		name = name_in;
		
		// Initialize all other member variables to 0
		pat = 0;
		fg0 = 0;
		fg1 = 0;
		fg2 = 0;
		misses = 0;
	}

	// Getters and Setters
	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}



	public int getPat() {
		return pat;
	}



	public void setPat(int pat) {
		this.pat = pat;
	}



	public int getFg0() {
		return fg0;
	}



	public void setFg0(int fg0) {
		this.fg0 = fg0;
	}



	public int getFg1() {
		return fg1;
	}



	public void setFg1(int fg1) {
		this.fg1 = fg1;
	}



	public int getFg2() {
		return fg2;
	}



	public void setFg2(int fg2) {
		this.fg2 = fg2;
	}



	public int getMisses() {
		return misses;
	}



	public void setMisses(int misses) {
		this.misses = misses;
	}



	// Define a function to calculate this kickers score in fantasy
	public int calculatePoints(){
		// Initialize sum to 0
		int sum = 0;
		
		// Add points for pat
		sum += pat;
		
		// Add points for each category of field goal made
		sum += 3*fg0;
		sum += 4*fg1;
		sum += 5*fg2;
		
		// Subtract points for misses
		sum -= misses;
		
		// Return sum
		return sum;
	}
}
